#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2025/7/31 12:24
# @Author  : summer
# @Email   : 610658552@qq.com
# @File    : urls.py.py
# @Software: PyCharm
# @Desc    :
from django.urls import path

from wechat.views.view_wechat_log import WechatLogListView
from wechat.views.wechat_template import WechatTemplateListCreateView
from wechat.views.wechat_template import WechatTemplateRetrieveUpdateDestroyView
from wechat.views.view_wechat_openid import WechatOpenidListCreateView
from wechat.views.view_wechat_openid import WechatOpenidRetrieveUpdateDestroyView

urlpatterns = [
    # 微信模板列表查询/新增：/wechat/template/
    path("template/", WechatTemplateListCreateView.as_view(), name="wechat-template-list-create"),
    # 微信模板单条操作（详情/更新/删除）：/wechat/template/1/
    path("template/<int:pk>/", WechatTemplateRetrieveUpdateDestroyView.as_view(), name="wechat-template-detail"),

    path('log/', WechatLogListView.as_view(), name='wechat-log'),

    path('openid/', WechatOpenidListCreateView.as_view(), name='wechat-openid-list-create'),
    path('openid/<int:pk>/', WechatOpenidRetrieveUpdateDestroyView.as_view(), name='wechat-openid-detail'),
]
